/*
 * @description  : 案件文书 service
 * @descriptionDetail: 案件文书 service
 * @copyright    : 浙江烟草
 * @author       : sy
 * @create       : 2022-07-15 15:43:11
 */
import apiUrl from "@/common/api_urls/case";
import reqHelper from "@/common/reqHelper";
import {dateUtils,} from "@/common/util";
import { PATHROOT, } from '../../common/path.config.js';

/**
 * 从审核审批对象中组装get请求数据
 * @param approve
 * @returns {string}
 */
function getApproveData(approve, nextPersons) {
  !approve.approveDate && (approve.approveDate = dateUtils.dateFormat("yyyy年MM月dd日", new Date()));
  return `?opType=${approve.opType}&gfaCode=${approve.gfaCode}&docInsUuid=${approve.docInsUuid}&isAgree=${approve.isAgree}&approvePersonUuid=${approve.approvePersonUuid}&approveDate=${encodeURIComponent(approve.approveDate)}&nextPersons=${nextPersons || ''}&approveInfo=${encodeURIComponent(approve.approveInfo)}`;
}

export default {
  /**
	 * 获取文书详情
	 * @param paras 查询参数
	 */
  getDocIns(docInsUuid) {
    return reqHelper.postForm({
      docInsUuid: docInsUuid,
    }, apiUrl.caseDoc.getDocIns);
  },

  /**
	 * 审核审批信息
	 * @param paras 查询参数
	 */
  approves(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.approves);
  },
  /**
	 * 审批历史
	 * @param paras 查询参数
	 */
  flowHis(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.flowHis);
  },
  /**
	 * 查询申请信息
	 * @param paras 查询参数
	 */
  getApplyByMainId(handleMainId) {
    return reqHelper.postForm({
      handleMainId: handleMainId,
    }, apiUrl.caseDoc.getApplyByMainId);
  },


    /** ******************************* 案件补录申请文书-广西特例 ---- start ****************************/
    docReplenishment(param) {
        return reqHelper.postForm(param, apiUrl.caseDoc.docReplenishment);
    },
    /**
     * 案件补录申请文书-保存
     */
    saveDocReplenishment(param,docUuid,titemUuid,docInsUuid,gfaCode){
        let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
        return reqHelper.postJson(param, apiUrl.caseDoc.saveReplenishment + ps);
    },
    /**
     * 案件补录申请文书-提交
     */
    submitDocReplenishment(param,docUuid,titemUuid,docInsUuid,gfaCode,nextPersons){
        let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&nextPersons=${nextPersons}`;
        return reqHelper.postJson(param, apiUrl.caseDoc.submitDocReplenishment + ps);
    },
    /**
     * 案件补录申请文书 --同意
     */
    docReplenishmentAgree(t, approve, nextPersons) {
        let sub = getApproveData(approve, nextPersons);
        return reqHelper.postJson(t, apiUrl.caseDoc.docReplenishmentAgree + sub);
    },
    /**
     * 案件补录申请文书 --不同意
     */
    docReplenishmentDisAgree(t, approve) {
        let sub = getApproveData(approve);
        if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
            return reqHelper.postJson(t, apiUrl.caseDoc.docReplenishmentDisAgree + sub);
        }
        return reqHelper.postJson(t, apiUrl.caseDoc.docReplenishmentBack + sub);
    },

    /** ******************************* 案件补录申请文书 -广西特例---- end ****************************/

  /** ******************************* 立案报告表 ---- start ****************************/
  docRegRep(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docRegRep);
  },
  /**
	 * 立案报告表-保存
	 */
  saveDocRegRep(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocRegRep + ps);
  },
  /**
	 * 立案报告表-提交
	 */
  submitDocRegRep(param,docUuid,titemUuid,docInsUuid,gfaCode,nextPersons){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&nextPersons=${nextPersons}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocRegRep + ps);
  },
  /**
	 * 立案报告表 --同意
	 */
  docRegisterAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docRegisterAgree + sub);
  },
  /**
	 * 立案报告表 --不同意
	 */
  docRegisterDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docRegisterDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docRegisterBack + sub);
  },

  /** ******************************* 立案报告表 ---- end ****************************/

  /** **************************** 撤销立案报告表 ---- start ****************/

  docRevokeRep(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docRevokeRep);
  },
  /**
	 * 同意
	 */
  docRevokeAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeAgree + sub);
  },
  /**
	 * 不同意
	 */
  docRevokeDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeBack + sub);
  },

  /** *************************** 撤销立案报告表 ---- end ******************/

  /** **************************** 先行登记保存批准书 ---- start ****************/

  docRevokeApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docRevokeApprove);
  },
  /**
	 * 同意
	 */
  docRevokeApvAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeApvAgree + sub);
  },
  /**
	 * 不同意
	 */
  docRevokeApvDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeApvDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docRevokeApvBack + sub);
  },
  /**
   * 判断先行登记保存批准书是否可以添加
   * @param {Object} param
   */
  docRevokeApvCanAdd(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.docRevokeApvCanAdd);
  },
  /** *************************** 先行登记保存批准书 ---- end ******************/

  /** **************************** 案件处理审批表 ---- start ****************/

  docCaseApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docCaseApprove);
  },
  /**
	 * 同意
	 */
  docCaseApproveAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docCaseApproveAgree + sub);
  },
  /**
	 * 不同意
	 */
  docCaseApproveDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docCaseApproveDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docCaseApproveBack + sub);
  },

  /** *************************** 案件处理审批表 ---- end ******************/

  /** **************************** 不予立案报告表 ---- start ****************/

  docRefuseApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docRefuseApprove);
  },
  /**
	 * 同意
	 */
  docRefuseAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docRefuseAgree + sub);
  },
  /**
	 * 不同意
	 */
  docRefuseDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docRefuseDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docRefuseBack + sub);
  },

  /** *************************** 不予立案报告表 ---- end ******************/

  /** **************************** 延长立案期限审批表 ---- start ****************/

  docDelayApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docDelayApprove);
  },
  /**
	 * 同意
	 */
  docDelayAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docDelayAgree + sub);
  },
  /**
	 * 不同意
	 */
  docDelayDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docDelayDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docDelayBack + sub);
  },

  /** *************************** 延长立案期限审批表 ---- end ******************/
  /** **************************** 举报纪录表 ---- start ****************/

  docReportRecordApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docReportRecordApprove);
  },
  /**
	 * 同意
	 */
  docReportRecordAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docReportRecordAgree + sub);
  },
  /**
	 * 不同意
	 */
  docReportRecordDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docReportRecordDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docReportRecordBack + sub);
  },

  /** *************************** 举报纪录表 ---- end ******************/

  /** **************************** 抽样取证物品清单 ---- start ****************/

  docSampleHandleNoticeApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docSampleHandleNoticeApprove);
  },
  /**
	 * 同意
	 */
  docSampleHandleNoticeAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docSampleHandleNoticeAgree + sub);
  },
  /**
	 * 不同意
	 */
  docSampleHandleNoticeDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docSampleHandleNoticeDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docSampleHandleNoticeBack + sub);
  },

  /** *************************** 抽样取证物品清单 ---- end ******************/
  /** **************************** 卷烟鉴别检验样品留样、损耗费用审批表 ---- start ****************/

  docSampleApvApprove(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docSampleApvApprove);
  },
  /**
	 * 同意
	 */
  docSampleApvAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docSampleApvAgree + sub);
  },
  /**
	 * 不同意
	 */
  docSampleApvDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docSampleApvDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docSampleApvBack + sub);
  },

  /** *************************** 卷烟鉴别检验样品留样、损耗费用审批表 ---- end ******************/
  // 结案报告表
  docFinalReport(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docFinalReport);
  },
  /**
	 * 同意
	 */
  docFinalReportAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docFinalReportAgree + sub);
  },
  /**
	 * 不同意
	 */
  docFinalReportDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docFinalReportDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docFinalReportBack + sub);
  },

  /**
	 * 延长案件调查终结审批表
	 */
  docDelayInvstgApv(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docDelayInvstgApv);
  },
  /**
	 * 同意
	 */
  docDelayInvstgApvAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docDelayInvstgApvAgree + sub);
  },
  /**
	 * 不同意
	 */
  docDelayInvstgApvDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docDelayInvstgApvDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docDelayInvstgApvBack + sub);
  },

  /**
	 * 案件移送函
	 */
  docTrans(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docTrans);
  },
  /**
	 * 同意
	 */
  docTransAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docTransAgree + sub);
  },
  /**
	 * 不同意
	 */
  docTransDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docTransDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docTransBack + sub);
  },

  /**
	 * 卷宗封面
	 */
  docFile(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docFile);
  },
  /**
	 * 同意
	 */
  docFileAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docFileAgree + sub);
  },
  /**
	 * 不同意
	 */
  docFileDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docFileDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docFileBack + sub);
  },

  // -----------涉案烟草专卖品核价表------------//
  /**
	 * 卷宗封面
	 */
  docPriceMake(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docPriceMake);
  },
  /**
	 * 涉案物品明细数据
	 */
  docPriceMakeGoods(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docPriceMakeGoods);
  },
  /**
	 * 同意
	 */
  docPriceMakeAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docPriceMakeAgree + sub);
  },
  /**
	 * 不同意
	 */
  docPriceMakeDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docPriceMakeDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docPriceMakeBack + sub);
  },

  // -----------当场行政处罚决定情况备案表------------//
  /**
  	 *
  	 */
  docSituationRecord(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docSituationRecord);
  },
  /**
  	 * 同意
  	 */
  docSituationRecordAgree(t, approve, nextPersons) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.docSituationRecordAgree + sub);
  },
  /**
  	 * 不同意
  	 */
  docSituationRecordDisAgree(t, approve) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.docSituationRecordDisAgree + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.docSituationRecordBack + sub);
  },

  /**
   * 根据检查记录查询案件文书
   * @param {*} checkActionCode
   * @param {*} caseType          1一般案件，2简易案件
   * @returns
   */
  getDocInsUuidByCaseType(checkActionCode, caseType) {
    return reqHelper.postForm({ checkActionCode: checkActionCode, caseType: caseType, }, apiUrl.caseDoc.getDocInsUuidByCaseType);
  },

  // -----------证据先行登记保存通知书------------//
  /**
 * 获取先保通的文书信息
 * id:
 * docUuid: 文书uuid
 * bizUuid：案件id
 */
  docInfo(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docInfo);
  },
  /**
 *先保通保存
 * @param param
 * @param docInsUuid 文书的Uuid
 * @param docUuid doc-11
 * @param titemUuid
 */
  saveGoodsReg(paras,docUuid,titemUuid,docInsUuid) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveGoodsReg + ps);
  },
  /**
 * 提交先保通
 * @param param
 */
  submitDoc(docUuid,titemUuid,docInsUuid,paras) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDoc + ps);
  },
    // ----------- 证据先行登记保存权利告知书 zyf start 2024-03-29------------//
  /**
   * 获取先保处的文书信息
   * id:
   * docUuid: 文书uuid
   * bizUuid：案件id
   */
  docGoodsRight(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docGoodsRight);
  },
  /**
   * 提交先保通
   * @param param
   */
  submitDocRight(paras, docUuid, titemUuid) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&nextPersons=`;
    return reqHelper.postJson({ ...paras }, apiUrl.caseDoc.submitDocRight + ps);
  },
  /**
   *先保告保存
   * @param param
   * @param docInsUuid 文书的Uuid
   * @param docUuid doc-11
   * @param titemUuid
   */
  saveDocGRight(paras, docUuid, titemUuid, docInsUuid) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}`;
    return reqHelper.postJson({ ...paras }, apiUrl.caseDoc.saveDocGRight + ps);
  },
  /**
   * 判断先行登记保存批准书是否可以添加
   * @param {Object} param
   */
  docGoodsRightCanAdd(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docGoodsRightCanAdd);
  },
  // ----------- 证据先行登记保存权利告知书 zyf end 2024-03-29------------//
  /**
 * 获取已审批通过的先报书
 * id:
 * docUuid: 文书uuid
 * bizUuid：案件id
 */
  getDoodsRegs(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDoodsRegs);
  },
  /**
 *先保通保存
 * @param param
 * @param docInsUuid 文书的Uuid
 * @param docUuid doc-11
 * @param titemUuid
 */
  saveDocGHandle(paras,docUuid,titemUuid,docInsUuid) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocGHandle + ps);
  },
  /**
 * 提交先保处
 * @param param
 */
  submitDocHandle(paras,docUuid,titemUuid,) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&nextPersons=`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocHandle + ps);
  },
  // -----------非法流通卷烟码段统计表------------//
  /**
  * 获取非法流通卷烟码段统计表数据
  *  * @param param
  */
  getLawLessnessDoc(id,docUuid,bizUuid){
    return reqHelper.postForm({id:id,docUuid: docUuid, bizUuid: bizUuid,}, apiUrl.caseDoc.getLawLessnessDoc);
  },
  /**
  * 保存非法流通卷烟码段统计表数据
  */
  saveLawLessnessDoc(paras,docUuid,titemUuid,){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&nextPersons=`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveLawLessnessDoc + ps);
  },
  /**
  * 提交非法流通卷烟码段统计表数据
  */
  submitLawLessnessDoc(paras,docUuid,titemUuid,){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&nextPersons=`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitLawLessnessDoc + ps);
  },

  // -----------检查勘验笔录------------//
  /** 获取文书自定义模板字段
 */
  docFields(docUuid,canUserDefine) {
    return reqHelper.postForm({docUuid: docUuid, canUserDefine: canUserDefine,}, apiUrl.caseDoc.docFields);
  },
  /**
 * 获取勘验笔录
 * @param param
 */
  getDocCheckRecord(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocCheckRecord);
  },
  /**
 * 保存勘验笔录
 * @param param
 * @param docUuid
 * @param titemUuid
 * @param docInsUuid
 * @param gfaCode
 */
  saveDocCheckRecord(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocCheckRecord + ps);
  },
  /**
 * 提交勘验笔录
 * @param param
 * @param docUuid
 * @param titemUuid
 * @param docInsUuid
 * @param gfaCode
 */
  submitDocCheckRecord(paras,docUuid,titemUuid,) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocCheckRecord + ps);
  },
  /**
   * 查询案件文书关联附件
   * @param {Object} param
   */
  officeAttachment(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.officeAttachment);
  },
  /**
   * 案件文书附件上传
   * @param {Object} param
   */
  officeAttUploadAndSave(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.officeAttUploadAndSave);
  },
  /**
   * 案件文书附件上传
   * @param {Object} base64Data
   * @param {Object} param
   */
  uploadAndSaveBase64(base64Data,param){
    param.base64Data = base64Data.indexOf(",") ? base64Data.split(",")[1] : base64Data;
    return reqHelper.postForm(param, apiUrl.caseDoc.uploadAndSaveBase64);
  },
  /**
   * 案件文书附件删除
   * @param {Object} param
   */
  delFileStoreFileAndSysAttachInfo(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.delFileStoreFileAndSysAttachInfo);
  },
  /**
 * 生成pdf预览(不含签名)
 * @param url           文书预览url（仅包含部分路径）
 * @param docInsUuid    文书实例uuid
 * @returns {Promise<any>}
 */
  buildLocalPunish(url,docInsUuid){
    return reqHelper.postForm({},`${PATHROOT.CASE}${url}/previewPdf.do?docInsUuid=${docInsUuid}`);
  },
  // -----------调查处理通知书------------//
  /**
 * 获取调查处理通知书
 * @param param
 */
  getDocSurvey(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocSurvey);
  },
  /**
 * 保存调查处理通知书
 * @param param
 * @param docUuid
 * @param titemUuid
 * @param docInsUuid
 * @param gfaCode
 */
  saveDocSurvey(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocSurvey + ps);
  },
  /**
 * 提交调查处理通知书
 * @param param
 * @param docUuid
 * @param titemUuid
 * @param docInsUuid
 * @param gfaCode
 */
  submitDocSurvey(paras,docUuid,titemUuid,) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocSurvey + ps);
  },
  /**
	 * 获取证据复制单
	 * @param {Object} param
	 */
  getDocCopyEvidenceDoc(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocCopyEvidenceDoc);
  },
  /**
	 * 证据复制单保存
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  saveDocCopyEvidenceDoc(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocCopyEvidenceDoc + ps);
  },
  /**
	 * 证据复制单提交
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  submitDocCopyEvidenceDoc(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocCopyEvidenceDoc + ps);
  },
  /**
	 * 获取询问笔录数据
	 * @param {Object} param
	 */
  getDocAskRecord(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocAskRecord);
  },

  /**
   * 获取询问通知书
   * @param {Object} param
   */
  getDocInquiryNotice(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocInquiryNotice);
  },

  /**
   * 获取涉案物品核价表
   * @param {Object} param price-audit
   */
  getDocPriceAudit(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocPriceAudit);
  },

  /**
	 * 查询案件物品信息表
	 * @param {Object} caseUuid
	 */
  caseGoodsPunishList(caseUuid){
    let ps = `?caseUuid=${caseUuid}`;
    return reqHelper.postJson({}, apiUrl.caseDoc.caseGoodsPunishList + ps);
  },
  /**
  	 * 查询案件物品信息表 --文书初始化时有数据（新加的)
  	 * @param {Object} caseUuid
  	 */
  caseGoodsDtlNewList(caseUuid){
    let ps = `?caseUuid=${caseUuid}`;
    return reqHelper.postJson({}, apiUrl.caseDoc.caseGoodsDtlNewList + ps);
  },
  /**
	 * 保存案件物品信息表（处罚依据）
	 * @param {Object} caseUuid
	 * @param {Object} param
	 */
  saveCaseGoodsPunishList(caseUuid,param){
    let ps = `?caseUuid=${caseUuid}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveCaseGoodsPunishList + ps);
  },
  /**
	 * 保存询问笔录
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  saveDocAskRecord(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocAskRecord + ps);
  },
  /**
	 * 提交询问笔录
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  submitDocAskRecord(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocAskRecord + ps);
  },

  /**
   * 保存询问通知书 doc-
   * @param {Object} param
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  saveDocInquiryNotice(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocInquiryNotice + ps);
  },
  /**
   * 提交询问通知书
   * @param {Object} param
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  submitDocInquiryNotice(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocInquiryNotice + ps);
  },


  /**
   * 保存涉案物品核价表
   * @param {Object} param
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  saveDocPriceAudit(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocPriceAudit + ps);
  },
  /**
   * 提交涉案物品核价表
   * @param {Object} param
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  submitDocPriceAudit(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocPriceAudit + ps);
  },

  /**
 * 获取鉴别检验物品清单
 * @param {Object} param
 */
  getDocZmSampling(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocZmSampling);
  },
  /**
 * 保存鉴别检验物品清单
 * @param {Object} param
 * @param {Object} docUuid
 * @param {Object} titemUuid
 * @param {Object} docInsUuid
 * @param {Object} gfaCode
 */
  saveDocZmSampling(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocZmSampling + ps);
  },
  /**
 * 提交鉴别检验物品清单
 * @param {Object} param
 * @param {Object} docUuid
 * @param {Object} titemUuid
 * @param {Object} docInsUuid
 * @param {Object} gfaCode
 */
  submitDocZmSampling(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocZmSampling + ps);
  },
  /**
	*保存先行登记保存批准书
	* @param {Object} param
	* @param {Object} docUuid
	* @param {Object} titemUuid
	* @param {Object} docInsUuid
	* @param {Object} gfaCode
	*/
  saveDocGoodsApv(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocGoodsApv + ps);
  },
  /**
	* 提交先行登记保存批准书
	* @param {Object} param
	* @param {Object} docUuid
	* @param {Object} titemUuid
	* @param {Object} docInsUuid
	* @param {Object} gfaCode
	*/
  submitDocGoodsApv(param,docUuid,titemUuid,docInsUuid,gfaCode,nextPersons){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&nextPersons=${nextPersons}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocGoodsApv + ps);
  },
  /**
	 * 获取当场行政处罚决定书
	 * @param {Object} param
	 */
  getDocPunish(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocPunish);
  },
  /**
	 * 当场行政处罚决定书保存
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  saveDocPunish(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocPunish + ps);
  },
  /**
	 * 当场行政处罚决定书提交
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  submitDocPunish(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocPunish + ps);
  },
  /**
	 * 获取当场行政处罚决定书
	 * @param {Object} param
	 */
  getLocalCheck(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getLocalCheck);
  },
  /**
	 *当场行政处罚决定书保存
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  saveLocalCheck(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveLocalCheck + ps);
  },
  /**
	 * 当场行政处罚决定书提交
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  submitLocalCheck(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitLocalCheck + ps);
  },

  /**
     * 文书中的案由选择
     */
  caseProps(caseUuid, page = 1, limit = 10){
    let ps = `?caseUuid=${caseUuid}&page=${page}&limit=${limit}`;
    return reqHelper.get({}, apiUrl.caseDoc.caseProps + ps);
  },

  /**
		* 获取现场缴款凭证
		* @param {Object} param
		*/
  getDocPayment(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocPayment);
  },
  /**
		* 保存现场缴款凭证
		* @param {Object} param
		* @param {Object} docUuid
		* @param {Object} titemUuid
		* @param {Object} docInsUuid
		* @param {Object} gfaCode
		*/
  saveDocPayment(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocPayment + ps);
  },
  /**
		* 提交现场缴款凭证
		* @param {Object} param
		* @param {Object} docUuid
		* @param {Object} titemUuid
		* @param {Object} docInsUuid
		* @param {Object} gfaCode
		*/
  submitDocPayment(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocPayment + ps);
  },
  /**
	* 获取当场处罚缴纳罚款委托书
	* @param {Object} param
	*/
  getDocLocalePunish(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocLocalePunish);
  },
  /**
	* 保存当场处罚缴纳罚款委托书
	* @param {Object} param
	* @param {Object} docUuid
	* @param {Object} titemUuid
	* @param {Object} docInsUuid
	* @param {Object} gfaCode
	*/
  saveDocLocalePunish(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocLocalePunish + ps);
  },
  /**
	* 提交当场处罚缴纳罚款委托书
	* @param {Object} param
	* @param {Object} docUuid
	* @param {Object} titemUuid
	* @param {Object} docInsUuid
	* @param {Object} gfaCode
	*/
  submitDocLocalePunish(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocLocalePunish + ps);
  },
  /**
	* 文书删除
	* @param {Object} param
	*/
  checkCanBeDelete(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.checkCanBeDelete);
  },
  /**
 * 文书作废是否有效
 */
  isInvalid(url,docInsUuid){
    return reqHelper.postForm({docInsUuid:docInsUuid,},`${PATHROOT.CASE}${url}/invalid.do`);
  },
  // -----------行政处罚文书送达地址确认书------------//
  /**
    * 行政处罚文书送达地址确认书
    * @param param
    */
  getDocServiceAddrConfirm(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocServiceAddrConfirm);
  },
  /**
    * 行政处罚文书送达地址确认书
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  saveDocServiceAddrConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocServiceAddrConfirm + ps);
  },
  /**
    * 提交调查处理通知书
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  submitDocServiceAddrConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocServiceAddrConfirm + ps);
  },

  /**
	 * 获取鉴别检验物品审批表
	 * @param {Object} param
	 */
  getDocGoodsApproval(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocGoodsApproval);
  },
  /** 鉴别检验物品审批表保存
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  saveDocGoodsApproval(param,docUuid,titemUuid,docInsUuid,gfaCode){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.saveDocGoodsApproval + ps);
  },
  /**
	 * 鉴别检验物品审批表提交
	 * @param {Object} param
	 * @param {Object} docUuid
	 * @param {Object} titemUuid
	 * @param {Object} docInsUuid
	 * @param {Object} gfaCode
	 */
  submitDocGoodsApproval(param,docUuid,titemUuid,docInsUuid,gfaCode,nextPersons){
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&nextPersons=${nextPersons}`;
    return reqHelper.postJson(param, apiUrl.caseDoc.submitDocGoodsApproval + ps);
  },
  /**
	 * 动态获取文书环节接口
	 * @param {Object} param
	 */
  itemsMobile(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.itemsMobile);
  },
  /**
	 * 抽样物品选择
	 * @param {Object} param
	 */
  chooseGoods(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.chooseGoods);
  },
  /**
   * 抽样物品选择--新接口
   * @param {Object} param
   */
  getListByGoodsRegUuid(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getListByGoodsRegUuid);
  },
  /** **************************** abs文书 ---- start ****************/

  getAbsDoc(param, gfCode) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getAbsDoc(gfCode));
  },
  /**
   * 同意
   */
  approveAbsAgree(t, approve, nextPersons, gfCode) {
    let sub = getApproveData(approve, nextPersons);
    return reqHelper.postJson(t, apiUrl.caseDoc.approveAbsAgree(gfCode) + sub);
  },
  /**
       * 不同意
       */
  approveAbsDisAgree(t, approve, gfCode) {
    let sub = getApproveData(approve);
    if (approve.opType == 2) { // 1-同意，2-不同意，3-退回修改
      return reqHelper.postJson(t, apiUrl.caseDoc.approveAbsDisAgree(gfCode) + sub);
    }
    return reqHelper.postJson(t, apiUrl.caseDoc.approveAbsBack(gfCode) + sub);
  },

  /** *************************** abs文书 ---- end ******************/
  /**
	 * 获取勘验笔录模板自由表单
	 * @param {Object} param
	 */
  findDocFreeFormInfo(param){
    return reqHelper.postJson(param, apiUrl.caseDoc.findDocFreeFormInfo);
  },
  /**
   * 获取物品列表
   */
  goodsList(goodsRegUuid, page = 1, limit = 50){
    let ps = `?goodsRegUuid=${goodsRegUuid}&page=${page}&limit=${limit}`;
    return reqHelper.get({}, apiUrl.caseDoc.goodsList + ps);
  },
  /**
   * 判断证据先行保存通知书是否可添加
   * @param {Object} param
   */
  canAdd(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.canAdd);
  },
  // -----------送达方式确认书------------//
  /**
   * 判断送达方式确认书是否可添加
   * @param {Object} param
   */
  serviceConfirmCanAdd(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.serviceConfirmCanAdd);
  },

  /**
    * 获取送达方式确认书
    * @param param
    */
  getDocServiceConfirm(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocServiceConfirm);
  },
  /**
    * 保存送达方式确认书
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  saveDocServiceConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocServiceConfirm + ps);
  },
  /**
    * 提交送达方式确认书
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  submitDocServiceConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocServiceConfirm + ps);
  },
  /**
   * 保存抽样取证物品清单
   * @param {Object} paras
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  saveDocSampleHandleNotice(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocSampleHandleNotice + ps);
  },
  /**
   * 提交抽样取证物品清单
   * @param {Object} paras
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  submitDocSampleHandleNotice(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocSampleHandleNotice + ps);
  },
  /**
   * 缴款单-获取行政处罚决定书列表
   * @param {Object} caseUuid
   */
  getPunishDecideListByCaseUuid(caseUuid){
    let ps = `?caseUuid=${caseUuid}`;
    return reqHelper.get({}, apiUrl.caseDoc.getPunishDecideListByCaseUuid + ps);
  },
  /**
   * 选择决定书赋值缴款单信息接口
   * @param {Object} param
   */
  getNoticeNo(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getNoticeNo);
  },
  /**
   * 获取缴款单
   * @param {Object} param
   */
  getDocPaymentNote(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocPaymentNote);
  },
  /**
   * 保存缴款单
   * @param {Object} paras
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  saveDocPaymentNote(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocPaymentNote + ps);
  },
  /**
   * 提交缴款单
   * @param {Object} paras
   * @param {Object} docUuid
   * @param {Object} titemUuid
   * @param {Object} docInsUuid
   * @param {Object} gfaCode
   */
  submitDocPaymentNote(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocPaymentNote + ps);
  },
  /**
   * 行政处罚决定书缴款单验证接口
   * @param {Object} param
   */
  getLocalePunishById(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.getLocalePunishById);
  },
  /**
   * 行政处罚决定书缴款单发送接口
   * @param {Object} param
   */
  sendLocalePunishPay(param){
    return reqHelper.postForm(param, apiUrl.caseDoc.sendLocalePunishPay);
  },

  /**
  * 获取勘验笔录快办
  * @param param
  */
  getDocCheckAskRecord(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocCheckAskRecord);
  },
  /**
  * 保存勘验笔录快办
  * @param param
  * @param docUuid
  * @param titemUuid
  * @param docInsUuid
  * @param gfaCode
  */
  saveDocCheckAskRecord(paras,docUuid,titemUuid,docInsUuid,gfaCode) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocCheckAskRecord + ps);
  },
  /**
  * 提交勘验笔录快办
  * @param param
  * @param docUuid
  * @param titemUuid
  * @param docInsUuid
  * @param gfaCode
  */
  submitDocCheckAskRecord(paras,docUuid,titemUuid,) {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocCheckAskRecord + ps);
  },
  /**
    * 获取当事人现场确认书
    * @param param
    */
  getDocQuickConfirm(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.getDocQuickConfirm);
  },
  /**
    * 当事人现场确认书保存
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  saveDocQuickConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode,belong = 'case') {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&belong=${belong}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.saveDocQuickConfirm + ps);
  },
  /**
    * 当事人现场确认书提交
    * @param param
    * @param docUuid
    * @param titemUuid
    * @param docInsUuid
    * @param gfaCode
    */
  submitDocQuickConfirm(paras,docUuid,titemUuid,docInsUuid,gfaCode,belong = 'case') {
    let ps = `?docUuid=${docUuid}&titemUuid=${titemUuid}&docInsUuid=${docInsUuid}&gfaCode=${gfaCode}&belong=${belong}`;
    return reqHelper.postJson({ ...paras, }, apiUrl.caseDoc.submitDocQuickConfirm + ps);
  },

  // 是否添加立案报告表 gys 开始 20240410
  /**
   * 立案报告表提交校验 是否已存在立案报告表
   * @param param
   * @param docUuid
   * @param titemUuid
   * @param docInsUuid
   * @param gfaCode
   */
  canAddDocRegConfirm(paras) {
    return reqHelper.postForm(paras, apiUrl.caseDoc.docRegisterCanAdd);
  },
  // 是否添加立案报告表 gys 开始 20240410
  // 案件-先行登记保存证据处理通知书文书一直在加载中-获取先保处的文书信息  zx start
  docGoodsHandle(param) {
    return reqHelper.postForm(param, apiUrl.caseDoc.docGoodsHandle);
  },
};
